<template>
	<view id="wrap">
		<view class="title">
			{{info.title}}
		</view>
		<view class="time">
			{{info.createTime}}
		</view>
		<view class="desc">
			{{info.content}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				info: {
					content: "内容",
					createTime: "时间",
					id: "",
					readFlag: '',
					title: "标题",
				}
			}
		},
		methods: {
			getInfo() {
				this.$u.api.noticeRead({
					id: this.id
				}).then(res => {
					this.info = res.data
				})
			}
		},
		onLoad(options) {
			this.id = options.id
			// this.getInfo()
		}
	}
</script>

<style lang="scss" scoped>
	#wrap {
		padding: 30rpx;

		.title {
			color: #1A1A1A;
			font-size: 36rpx;
			font-weight: 500;
			font-family: "PingFang SC-Medium";
		}

		.time {
			color: #888990;
			font-size: 24rpx;
			text-align: right;
			margin: 24rpx 0;
		}

		.desc {
			color: #666666;
			font-size: 28rpx;
			line-height: 48rpx;
		}
	}
</style>